package com.hospital.hms.dao;
import com.hospital.hms.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

@Mapper
public interface UserDao {

    public Integer login(HashMap map);

    

    /**
     * 通过用户id查询关联的医生ID和Job信息
     * */
    HashMap selectRefIdIdAndJobById(int id);

    Integer selectUserIdByRefId(Map param);

    int updateUserPassword(Map map);

    HashMap selectUserDetails(int userId);

    ArrayList<HashMap> selectUserByCondition(HashMap param);

    long selectUserByConditionCount(HashMap params);

    int insert(User user);

    int update(HashMap param);

    int deleteUserByIds(Integer[] ids);

    HashMap selectById(int userId);

}